<?php
require_once '../header.php';
?>
<div>
    <h1 id="Contentitle">Época</h1><br />
</div>
<div>
    <div>
        <form  id="formEpoca" action="http://localhost/Matematrix/admin/epoca.php" method="post">
            <input type="hidden" value="<?php echo isset($id) ? $id : "-1" ?>"/>
            <div class="linha">
                <label class="formLabelEsq">Nome da Época</label>
                <input class="formInputLine" type="text" name="nome" value="<?php echo isset($nome)? $nome : ""?>"/>
            </div>
            <div class="linha">
                <label class="formLabelEsq">Data de Inicio</label>
                <input class="formInput" type="date" name="dataInicio"/>
                <label class="formLabelDir">Data de Fim</label>
                <input class="formInput" type="date" name="dataFim"/>
            </div>
            <div class="linha">
                <label class="formLabelTextarea" class="formLabelEsq">Regulamento</label>
                <textarea class="formInputLine" name="regulamento" rows="12"><?php echo isset($regulamento)? $regulamento : ""?></textarea>
            </div>
            <div class="linha">
                <div id="linhaBotoes">
                    <input id="submeter" type="submit" value="Registar"/>                 
                    <input id="cancelar" type="reset" value="Cancelar"/>
                </div>
            </div>
        </form>
    </div> 
</div>
<?php
require_once '../footer.php';
?>
